package com.woniu.postbar.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.postbar.pojo.PostComplaint;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author wu
 * @since 2023-05-20
 */
public interface PostComplaintMapper extends BaseMapper<PostComplaint> {


    @Insert("insert into t_post_complaint(title, content, content_type, create_time) values (#{postComplaint.title},#{postComplaint.content},#{postComplaint.contentType},#{postComplaint.createTime})")
    List<PostComplaint> addPostComplaint(@Param("postComplaint") PostComplaint postComplaint);
}
